Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <head> <style> div { border: 1px solid black; padding: 35px; background-image: url('smiley.gif'); background-repeat: no-repeat; background-position: left; } #div1 { background-origin: border-box; } #div2 { background-origin:content-box; } </style> </head> <body> <p>background-origin:border-box:</p> <div id="div1"> Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. </div> <p>background-origin:content-box:</p> <div id="div2"> Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. </div> </body> <!-- Mirrored from www.w3schools.com/cssref/tryit.asp?filename=trycss3_background-origin by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:50:15 GMT --> </html>
Result:
Try it Yourself - © w3schools.com